//
//  JVNetworkFlowMonitor.h
//  iosframework
//
//  Created by 马泽岩 on 2017/11/6.
//  Copyright © 2017年 ljs. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^JVNetworkFlowMonitorBlock)(int total_b, int upload_speed_b, int download_speed_b);

@interface JVNetworkFlowMonitor : NSObject

+ (JVNetworkFlowMonitor *)sharedInstance;

- (void)appDidEnterForeground;

- (int)appDidEnterBackground;

-(void)checkNetworkflow:(JVNetworkFlowMonitorBlock)block;

- (NSString *)bytesToAvaiUnit:(int)bytes;

@end
